<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>选课界面</h1>


<!--返回submit提交的数据-->
<form method="post" action="/selectCourse">
    <div th:each="course:${courses}">
        <input type="checkbox" name="avilibleCourse" th:value="${course.no}">
        <a>课程号：[[${course.no}]]</a>
        <a>课程名：[[${course.name}]]</a>
        <a>讲师：[[${course.teacher}]]</a>
    </div>
    <button type="submit">确认选课</button>
</form>






</body>
</html>